import request from './request'

// 手机号码登录
export const cellphoneAPI = (params) => request.post('/login/cellphone', params)
// 登录状态
export const loginStatusAPI = () => request.post('/login/status')
// 获取用户信息 
export const userDetailAPI = (uid) => request.post(`/user/detail?uid=${uid}`)
//二维码 key 生成接口 /login/qr/key
export const LoginQrAPI = (timestamp) => request.get(`/login/qr/key?timestamp=${timestamp}`)
// 二维码生成接口  /login/qr/create
export const LoginQrCreateAPI = (key) => request.get(`/login/qr/create?qrimg=true&key=${key}`)
// 二维码检测扫码状态接口 /login/qr/check?key=xxx
export const LoginCheckAPI = (params) => request.get(`/login/qr/check?key=${params.key}&timestamp=${params.timestamp}`)
// 退出登录
export const extiLoginPAI = () => request.post("/logout")
